package grade;

import java.util.Scanner;

public class Main {
    // public static void main(String[] args) {
        public static void main(String[] args)throws Exception{
            int maxsize=100;
            Scanner sc=new Scanner(System.in);
            System.out.println("输入学生总数");
            int n=sc.nextInt();
            System.out.println("请按学号，姓名，语文成绩，数学成绩，英语成绩,总分数顺序输入学生信息");
            StudentManageSystem L=new StudentManageSystem(maxsize,n);
            System.out.println("输出学生信息");
            L.display();
            System.out.println("输入要查询学生的学号");
            L.displayNode(L.get(sc.nextInt()));
            System.out.println("输入要删除学生的学号");
            L.remove(sc.nextInt());
            System.out.println("删除成功");
            L.display();
            System.out.println("输入需要增加的学生信息");
            L.insert(new StudentNode(sc));
            L.display();
        }
       // System.out.println("Hello world!");
    }
